<?php
  #http://php.net/manual/en/function.mail.php
// multiple recipients
$to  = 'nb158f@gmail.com';

$subject = 'Birthday Reminders for Nov.';

// message
$message = file_get_contents("template.html");

$message = str_replace("[USER]","Rasmus Lerdorf",$message);
$message = str_replace('[INCOME]','12345',$message);
// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Mary <nb158f@gmail.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <nb158f@gmail.com>' . "\r\n";
//$headers .= 'Reply-To: anujain@gmail.com' . "\r\n";
$headers .= 'Cc: vikas.nice@gmail.com' . "\r\n";
//$headers .= 'Bcc: vikas@gmail.com' . "\r\n";

// Mail it
$flag = mail($to, $subject, $message, $headers);
var_dump($flag);
